package com.markhsiu.httpserver.processor;

import java.io.IOException;

import com.markhsiu.httpserver.event.Request;
import com.markhsiu.httpserver.event.Response;

/**
 * 处理器接口
 * @author Mark Hsiu
 *
 */
public interface Processor {

	/**
	 * 默认处理器
	 */
	public  static final Processor SINGLE = new DispatcherProcessor();
	
	public void service(Request request,Response response) throws IOException;
	
}
